/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const myResearchRouter =  {
  path: '/myresearch',
  component: Layout,
  redirect: '/myresearch/project/list',
  alwaysShow: true, // will always show the root menu
  name: 'My Research',
  meta: {
    title: '我的科研',
    icon: 'star',
  },
  children: [
    {
      path: '/myresearch/project',
      component: () => import("@/views/my-research/project/index"),
      redirect: '/myresearch/project/list',
      children: [
        {
          path: 'list',
          component: () => import('@/views/my-research/project/List'),
          name: 'MyProjectList',
          meta: { title: '我的项目',
            permission: "项目信息：浏览",
          }
        }
      ]
    },
    {
      path: '/myresearch/group',
      component: () => import('@/views/my-research/group/index'),
      redirect: '/myresearch/group/list',
      children: [
        {
          path: 'list',
          component: () => import('@/views/my-research/group/List'),
          name: 'MyGroupList',
          meta: { title: '我的课题组',
            permission: "课题组信息：浏览",
          }
        }
      ]
    }
  ]
}

export default myResearchRouter
